using UnityEngine;
using UnityEngine.UI;

public class SettlementStandardGameover : SettlementWindow
{
	[SerializeField]
	private GameObject m_WinPanel;

	[SerializeField]
	private GameObject m_LostPaenl;

	[SerializeField]
	private Text m_chips;

	[SerializeField]
	private Text m_opponentName;

	[SerializeField]
	private AnimationTools m_aniTools;

	public void SetWinner(int chips, bool isPlayer, string opponentName)
	{
		m_WinPanel.SetActive(isPlayer);
		m_LostPaenl.SetActive(!isPlayer);
		m_chips.text = chips + string.Empty;
		m_opponentName.text = opponentName;
		if (isPlayer)
		{
			m_aniTools.Trigger("Win");
		}
		else
		{
			m_aniTools.Trigger("Lost");
		}
	}

	public override void OnBack()
	{
		BaseUIController.Instance.Back2MainScene();
	}

	public override void OnTryAgain()
	{
		BaseUIController.Instance.RestartScene();
	}

	public override void OnNext()
	{
	}
}
